<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>组织列表</a></li>
        <li><a href="{:url('user/adminIndex/add_factory',array('id'=>input('id')))}">添加组织</a></li>
    </ul>
    <br/>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>组织</th>
                <th>姓名</th>
                <th>工号</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.factory.fname}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.fempnumber}</td>
                    <td>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('user/adminIndex/del_factory',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>